//
//  GameDataParser.h
//  Politics
//
//  Created by Hai Nguyen on 7/9/11.
//  Copyright 2011 VinaSource. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QuestionModel.h"

@protocol GameDataParserDelegate <NSObject>
- (void)didEndGetGameData:(NSMutableArray*)gameArray;
@end

@interface GameDataParser : NSObject <NSXMLParserDelegate>
{
	NSObject <GameDataParserDelegate>* delegate;
	NSMutableData *responseData;
	QuestionModel *currentQuestion;
	NSString *currentElement;
	NSMutableString * questionId, * questionSubject;
	NSMutableDictionary *dict1,*dict2,*dict3,*dict4;
	NSMutableArray *gameArray;
	int anwserCounter;
}
@property (nonatomic, retain) NSObject <GameDataParserDelegate>* delegate;
@property (nonatomic, retain) NSMutableData *responseData;
@property (nonatomic, retain) NSString *currentElement;
@property (nonatomic, retain) NSMutableString * questionId, * questionSubject;
@property (nonatomic, retain) NSMutableArray *gameArray;
@property (nonatomic, retain) NSMutableDictionary *dict1,*dict2,*dict3,*dict4;
@property (nonatomic, retain) QuestionModel *currentQuestion;

- (void)getGameDataWithDelegate:(id) theDelegate;
@end
